<?php
/* @var $this NewsController */
/* @var $model News */
/* @var $form CActiveForm */
?>

<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>

	<div class="row">
		<?php echo $form->label($model,'news_id'); ?>
		<?php echo $form->textField($model,'news_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'news_type'); ?>
		<?php echo $form->dropDownList($model,'news_type',NewsType::model()->getListArray(true)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'news_title'); ?>
		<?php echo $form->textField($model,'news_title',array('size'=>60,'maxlength'=>128)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'news_content'); ?>
		<?php echo $form->textArea($model,'news_content',array('rows'=>6, 'cols'=>50)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'news_add_time'); ?>
		<?php //echo $form->textField($model,'news_add_time'); ?>
		<?php $this->widget('zii.widgets.jui.CJuiDatePicker',array(  
		                'model'=>$model,
                        'attribute' => 'news_add_time',  
		                //'name'=> 'news_add_time',
                        'language' => 'zh_cn',
		                'value' => $model->news_add_time,
                        'options' => array(  
                             'showAnim' => 'fold',
                             'dateFormat' => 'yy-mm-dd',  
                        ),  
             ));  
        ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton('搜索'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- search-form -->